home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19970104-19970326
/
000456_news@columbia.edu _Fri Mar 21 17:35:08 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Return-Path: <news@columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id RAA17777
for <kermit.misc@watsun.cc.columbia.edu>; Fri, 21 Mar 1997 17:35:08 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id RAA02320
for kermit.misc@watsun; Fri, 21 Mar 1997 17:35:07 -0500 (EST)
Path: news.columbia.edu!panix!news-xfer.netaxs.com!news.mathworks.com!news.pbi.net!samba.rahul.net!rahul.net!a2i!jadestar.a2i!jadestar
From: Jim Dennis <jadestar@rahul.net>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Command line execution
Date: 21 Mar 1997 21:36:00 GMT
Organization: a2i network
Lines: 36
Message-ID: <5guv00$1uv@samba.rahul.net>
References: <3331C0E9.54A3@mail.moody.edu>
NNTP-Posting-Host: waltz.rahul.net
NNTP-Posting-User: jadestar
X-Newsreader: TIN [version 1.2 PL2]
Xref: news.columbia.edu comp.protocols.kermit.misc:6788
Jim Hickman (jhickman@mail.moody.edu) wrote:
: Need a push with some simple stuff. Can't find where/how to make a .tak
: file run from the command line in C-Kermit on a HP-UX system. Know this
: has got to be something simple I just have forgotten in the several
: years since I've worked in a Unix environment.
One way is to create the script (the .tak file) with
an initial line like:
#! /usr/local/ckermit
(or whatever path is appropriate for your installation).
The #! must be the first two characters of the file for
this to work -- usually (under most forms of Unix) any
leading spaces, comments or blank lines will cause this
mechanism to fail).
Then you would make this file executable with a command
like: chmod +x.
This works with most Unix scripting facilities because
it identifies the file as a text script -- and the
file specification after the #! tells the system where to
find the interpreter.
Another way is to use a command like:
kermit ./myscript.tak or kermit ./myscript.ksc
(to follow the conventions of the trade).
Personally I prefer to just name my scripts with no
extension.
: Thanks - Jim Hickman